package day4.zuoye;

import java.util.Scanner;

public class Test08 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int sum = 0, avg = 0;
        System.out.println("请输入十个数");

        for (int i = 1; i <= 10; i++) {
            int num = scanner.nextInt();
            sum += num;
        }
        System.out.println("它们的和是"+sum);


    }
}
